<?php
class ome_interface_dlycorp{

    function __construct($app){
        $this->app = $app;
    }

    public function getList($cols='*', $filter=array(), $offset=0, $limit=-1, $orderType=null){
        return $this->app->model('dly_corp')->getList($cols, $filter, $offset, $limit, $orderType);
    }

    public function count($filter=array()){
        return $this->app->model('dly_corp')->count($filter);
    }

    public function save(&$data){
        if(!$data){
            return false;
        }
        return $this->app->model('dly_corp')->save($data);
    }

    public function update($data, $filter){
        return $this->app->model('dly_corp')->update($data,$filter);
    }

    public function delete($filter){
        return $this->app->model('dly_corp')->delete($filter);
    }
}